/*
 * This file (AxStringParameter.java) is protected by the GNU GPL licence (v2). 
 * Please read the license.txt attached for further informations. 
 * 
 */

package artx.parameters;

/**
 * String parameter class.
 * 
 * @author Xavier Gouchet
 * 
 */
public class AxStringParameter extends AxParameter {

	/**
	 * Standard constructor.
	 * 
	 * @param name
	 *            name of the parameter
	 */
	public AxStringParameter(String name) {
		super(name, "string");
	}

	/**
	 * Standard constructor.
	 * 
	 * @param name
	 *            name of the parameter
	 * @param reset
	 *            default value of the parameter
	 */
	public AxStringParameter(String name, String reset) {
		super(name, "string", reset);
	}

	/**
	 * Get the string value of the parameter.
	 * 
	 * @return string value of the parameter
	 */
	public String GetValue() {
		return new String(this.strValue);
	}

	/**
	 * @see artx.parameters.AxParameter#UpdateValue()
	 */
	public boolean UpdateValue() {
		return true;
	}

}
